<template>
  <div>
    <lottie
      v-for="(e, i) in pandaArr"
      :key="i"
      :options="e.defaultOptions"
      :height="200"
      :width="200"
    />
  </div>
</template>

<script>
import * as animationData from "../jsonFiles/国庆-发呆.json";
import tools from "../tools/data";
export default {
  data() {
    return {
      defaultOptions: { animationData: animationData.default },
      animationSpeed: 1,
      anim: {},
      pandaArr: tools.pandaArr,
    };
  },
  methods: {
    handleAnimation: function (anim) {
      this.anim = anim;
      console.log(anim); //这里可以看到 lottie 对象的全部属性
    },
  },
};
</script>

<style scoped>
</style>